
#include "project_marco.h"
#include "config/module_a_config.h"

#include <filesystem>

int main()
{
    // 读取配置文件
    const std::string core_cfg_name = "config.json";
    const std::string core_config_file = std::filesystem::path(DEFAULT_ROOT_DIR).append("config").append(core_cfg_name).string();
    std::cout << "config path:" << core_config_file << std::endl;
    if (module_a_config::sample().read_config(core_config_file))

    {
        std::cout << "Read config file succession " << std::endl;
    }
    else
    {
        std::cout << "ERROR : Failed to read config file " << std::endl;
        return 1;
    }

    return 0;
}